package com.team.arms.service_management_before.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.arms.service_management_before.domain.SpecificationGuidelines;
import com.team.arms.service_management_before.service.SpecificationGuidelinesService;
import com.team.arms.service_management_before.mapper.SpecificationGuidelinesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class SpecificationGuidelinesServiceImpl extends ServiceImpl<SpecificationGuidelinesMapper, SpecificationGuidelines>
    implements SpecificationGuidelinesService{

    @Autowired
    private SpecificationGuidelinesMapper specificationGuidelinesMapper;

    @Override
    public SpecificationGuidelines selectById(String id) {
        return specificationGuidelinesMapper.selectAllBySpecificationGuidelinesId(id);
    }

    @Override
    public int insertAll(SpecificationGuidelines specificationGuidelines) {
        return specificationGuidelinesMapper.insertAll(specificationGuidelines);
    }

    @Override
    public int deleteByClothingId(String id) {
        return specificationGuidelinesMapper.deleteById(id);
    }

    @Override
    public int deleteByClothingIds(List<String> id) {
        return specificationGuidelinesMapper.deleteBatchIds(id);
    }

    @Override
    public List<SpecificationGuidelines> selectSpecificationGuidelines(SpecificationGuidelines specificationGuidelines) {
        return specificationGuidelinesMapper.selectSpecificationGuidelines(specificationGuidelines);
    }

    @Override
    public List<SpecificationGuidelines> selectByFiled(String field, String content) {
        return specificationGuidelinesMapper.selectByFiled(field, content);
    }
}




